feat(scaffold-core@1.1.0): workers-saas pattern + LocalScaffoldResult promoted fields (#221)#222
Merged
Merged
Conversation
… fields (#221) - Add 'workers-saas' to PatternName union; SaaS Signal pattern now emits this name directly (was 'worker') for multi-tenant/org/workspace/saas intentions - LocalScaffoldResult gains `traits: string[]` (promoted from classification.traits) and `tier2Recommended: boolean` (classification.confidence < 0.6) - Tests updated to assert result.pattern === 'workers-saas' for multi-tenant intentions; 738/738 tests green Closes #221 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
'workers-saas'toPatternNameunion — multi-tenant SaaS intentions now return this pattern name instead of the generic'worker'LocalScaffoldResultgainstraits: string[](promoted fromclassification.traitsfor convenient top-level access) andtier2Recommended: boolean(confidence < 0.6)result.pattern === 'workers-saas'for multi-tenant intentionsWhy
@stackbilt/scaffold-core@1.0.0was returning'worker'for SaaS intentions because the SaaS SCORED_PATTERN hadname: 'worker'even though itssource_patterntraitMap key was'workers-saas'. stackbilt-web's domain fixture tests depend on'workers-saas'as the pattern name.The two new
LocalScaffoldResultfields (traits,tier2Recommended) unblock stackbilt-web#181 migration which needs them at top-level.Test plan
npm run typecheckpassesCloses #221
🤖 Generated with Claude Code